Rework the way IM contexts are set
authorMatthias Clasen <mclasen@redhat.com>
Fri, 4 Sep 2009 22:09:44 +0000 (18:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 4 Sep 2009 22:09:44 +0000 (18:09 -0400)
commit1c0ecc0380f8e30df297c5f1156c11ce70c98c81
treebaab08574f0bd7888ca21934b70322fec55701ea
parentea98cdc164b8837ff20d8906764a2e679686dd6b
Rework the way IM contexts are set

Add a function to obtain the effective context id, and reset the slave
only when the effective context id is different from the current context
id, when setting a client window and on focus in. This might fix
bug 593868 and bug 567124.
gtk/gtkimmodule.c
gtk/gtkimmulticontext.c